function changeTab(oA){
    var oAName =$(oA).attr("name");
    var oAclass = $(oA).attr("vlaue");
    var shows =$(oA).attr("shows");
    var oAs =$("[name="+oAName+"]");
    var rel = $(oA).attr("rel");
    document.getElementById(rel).style.display="none";
    oAs.each(function(i){
    	 if(oAs[i].className==oAclass && oAs[i] != oA){
             oAs[i].className="";
             var oDiv = document.getElementById(oAs[i].getAttribute("rel"));
             oDiv.style.display="none";
         }
    });
    if(shows == "off" && oA.className==oAclass){
    	  oA.className="";
    	  document.getElementById(rel).style.display="none";
    }else{
	    oA.className=oAclass;
	    document.getElementById(rel).style.display="block";
    }
    return false;
};

function titles(is){
	$("#interest").html (is);
}

function ButtonRes(v) {
  if(v=='1'){
  	$(".lbn-login-gg").css('background','url("./images/yl_bg.png") no-repeat 0px 0px');
  	$(".lbn-login-wz").css('background','url("./images/yl_bg.png") no-repeat -138px 0px');
  	$("#ButtonRegister").val(1);
  	
  }else if (v=='2'){
  	$(".lbn-login-gg").css('background','url("./images/pt_bg.png") no-repeat 0px 0px');
  	$(".lbn-login-wz").css('background','url("./images/pt_bg.png") no-repeat -138px 0px');
  	$("#ButtonRegister").val(2);
  };
}	



function back(val){
	if(val=='1'){
		$("#mt_ul").css('background','url("./images/mt_tit.png") no-repeat scroll -1px -46px transparent');
	}else if(val=='2'){
		$("#mt_ul").css('background','url("./images/mt_tit.png") no-repeat scroll -1px -1px transparent');
	}else if(val=='3'){
		$("#mt_ul").css('background','url("./images/mt_tit.png") no-repeat scroll -1px -91px transparent');
	}
}